package com.zhouyu.service;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author leimingchao
 * create 2025-05-13 20:04
 *
 * DeferredImportSelector:这个在SpringBoot中有用到
 *
 * 使用@Import导入的ZhouyuDeferredImportSelector，ZhouyuDeferredImportSelector不会成为bean
 */
public class ZhouyuDeferredImportSelector implements DeferredImportSelector {
	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {
		return new String[] {UserService.class.getName()};
	}
}
